package com.itheima.Properties集合.setProperty;

import java.util.Properties;
import java.util.Set;

public class setPropertyDemo {
    public static void main(String[] args) {
        Properties prop = new Properties();

        prop.setProperty("a","97");
        prop.setProperty("b","98");
        prop.setProperty("c","99");

        System.out.println(prop);

        String two = prop.getProperty("b");
        System.out.println(two);

        Set<String> keys = prop.stringPropertyNames();
        for (String key : keys) {
            String value = prop.getProperty(key);
            System.out.println(key+"="+value);
        }

    }
}
